package com.gof.example.bridge;

import com.gof.example.utils.XmlUtil;
import org.xml.sax.SAXException;

import javax.xml.parsers.ParserConfigurationException;
import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Created by zhiyuan on 2018/5/6 15:53.
 * haiming.fei@tongdun.cn
 */
public class App {

    public static void main(String[] args) throws SAXException, IllegalAccessException, IOException, InstantiationException, ParserConfigurationException, ClassNotFoundException {
        Report report = (Report) XmlUtil.getBean("report");
        DataCollector collector = (DataCollector) XmlUtil.getBean("collector");
        report.setCollect(collector);
        report.display();
    }
}
